<script>
 function closeParent()
	{
		window.parent.close();
	}
 </script>
 
<input type="button" value="Close parent window" onclick="closeParent()">
